package com.xrtn.utils;

/**
 * Created by tu_pei on 2017/7/20.
 */
public enum CodeEnum {

    SUCCESS("0","成功"),
    CODE_1("1","网络繁忙，请检查网络"),
    CODE_2("2","签名失败"),
    CODE_3("3","请求方法为空"),
    CODE_4("4","参数为空"),
    CODE_5("5","短信验证码发送过频繁"),
    CODE_6("6","失败"),

    /**
     * 用户模块
     */
    CODE_10001("10001","验证码错误"),
    CODE_10002("10002","密码错误"),
    CODE_10003("10003","用户不存在"),
    CODE_10004("10004","手机号格式不正确"),
    CODE_10005("10005","用户已存在"),
    CODE_10006("10006","请获取验证码"),
    CODE_10007("10007","未注册"),
    CODE_10008("10008","用户手机号已存在"),
    CODE_10009("10009","该员工是店长，不能更换门店信息，如若更换，请先在门店设置里取消其店长职务。"),
    CODE_10010("10010","没有可退的余额或您的退款申请等待审核"),
    CODE_10011("10011","该用户所在角色没有登录权限"),
    CODE_10012("10012","请先转移该角色下用户，然后删除该角色"),
    CODE_10013("10013","验证码已过期"),
    CODE_10014("10014","不能为自己代付"),
    CODE_10015("10015","验证码过期，请重新获取"),
    CODE_10016("10016","绑定失败，已注册会员或者联系人不能绑定为第二联系人或者第三联系人"),
    CODE_10017("10017","会员充值失败"),
    CODE_10018("10018","请输入大于0的充值金额"),
    CODE_10019("10019","该用户已有已完成订单，无法删除"),
    CODE_10020("10020","用户余额不足，无法扣款"),
    CODE_10021("10021","您的帐号将于2019年01月14日到期，过期后将无法登录！"),
    CODE_10022("10022","您的帐号已到期，无法登录"),


    CODE_20001("20001","新增宝宝失败"),
    CODE_20002("20002","新增基础调查信息表失败"),
    CODE_20003("20003","新增宝宝历史病历失败"),
    CODE_20004("20004","修改宝宝历史病历失败"),
    CODE_20005("20005","病历不存在"),
    CODE_20006("20006","此预约已存在病历，无法重新创建，请重新刷新重试"),
    CODE_20007("20007","宝宝不存在"),
    CODE_20008("20008","该宝宝已有已完成订单，无法删除"),

    CODE_21001("21001","新增广告失败"),
    CODE_21002("21002","修改广告失败"),

    CODE_30001("30001","订单不存在"),
    CODE_30002("30002","订单保存失败"),
    CODE_30003("30003","请填写病史信息表"),
    CODE_30004("30004","请完善基础调查信息表"),
    CODE_30005("30005","请先完善基础信息-病史档案信息"),
    CODE_30006("30006","改预约单已创建订单，请勿重复创建"),
    CODE_30007("30007","要修改的推拿师与原订单推拿师一致，请勿重复修改"),
    CODE_30008("30008","订单未完成，无法修改推拿师"),
    CODE_30009("30009","暂不允许跨店转移订单"),
    CODE_30010("30010","要修改的支付方式与原支付方式一致，请勿重复修改"),
    CODE_30011("30011","代付订单无法修改支付方式"),
    CODE_30012("30012","订单未完成，无法修改支付方式"),
    CODE_30013("30013","订单已完成或已过期，无法修改病历"),
    CODE_30014("30014","订单已完成，无法修改"),
    CODE_30015("30013","卡项订单不能用余额支付"),

    /**
     * 预约相关
     */
    CODE_40001("40001","预约失败"),
    CODE_40002("40002","预约失败，亲我要放松下，别打扰我了！"),
    /**
     * 病历相关接口
     */
    CODE_50001("50001","基础信息表添加失败"),
    CODE_50002("50002","基础信息表保存失败"),
    /**
     * 订单
     */
    CODE_60001("60001","次卡不存在"),
    CODE_60002("60002","次卡已使用完，请重新购买"),
    CODE_60003("60003","优惠券已使用或不存在"),
    CODE_60004("60004","体验券已使用或不存在"),
    CODE_60005("60005","未到满减券力度，再买点凑个单吧"),
    CODE_60006("60006","订单已完成请误重复提交"),
    CODE_60007("60007","该优惠券不能在该店使用"),
    CODE_60008("60008","余额不足"),
    CODE_60009("60009","该优惠券数量不足"),
    CODE_60010("60010","请输入手机号"),
    CODE_60011("60011","你已经领取过这个优惠券了，快快分享给你的朋友吧~"),
    CODE_60012("60012","优惠券已被领完了，店内看看其他活动吧~"),
    CODE_60015("60015","优惠券已经超过使用期限，下次记得提前领哦~"),
    CODE_60016("60016","请不要重复退款"),
    CODE_60017("60017","该退款申请已经通过"),
    CODE_60018("60018","该评价不存在"),
    CODE_60019("60019","请完善宝宝病史信息"),
    CODE_60020("60020","请完善宝宝病例信息"),
    CODE_60021("60021","身高或年龄输入异常"),
    CODE_60022("60022","您正申请退款，请选择其他方式支付"),
    CODE_60023("60023","订单不存在"),
    CODE_60024("60024","该员工没有收银权限"),
    CODE_60025("60025","订单取消失败"),
    CODE_60026("60026","该计次卡已使用，无法删除"),
    CODE_60027("60027","该退款申请已经处理过，请勿重复提交"),


    CODE_70001("70001","分店没有操作权限"),


    CODE_90001("90001","参数不全"),
    CODE_90002("90002","参数错误"),
    CODE_90003("90002","无此用户"),
    CODE_90004("90002","密码错误"),

    CODE_100001("100001","添加员工失败"),
    CODE_100002("100002","员工帐号已存在，请刷新重试"),

    ;
    private String code;
    private String message;
    private CodeEnum(String code, String message)
    {
        this.code = code;
        this.message = message;
    }

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
